home *** CD-ROM | disk | FTP | other *** search
/ A.C.E. 2 / ACE CD 2.iso / FILES / UTILS / ENVOYNWS.DMS / ENVOYNWS.adf / FloppyInstall < prev    next >
Text File  |  1993-12-28  |  37KB  |  806 lines

  1.  
  2. ;
  3. ; Envoy FLOPPY DISK Installation script
  4. ; Copyright (c) 1993, Commodore-Amiga, Inc.
  5.  
  6. ; $Id: floppydisk,v 1.6 93/12/23 20:35:21 jesup Exp $
  7. ;
  8. ;  Make sure that we are running under 2.04 or better
  9. ;
  10. (if (< (/ (getversion) 65536) 37)
  11.         (abort "You must be using Kickstart 2.04 or higher to install and use Envoy.")
  12. )
  13. ; Allow updating over SoftEng's big Envoy server
  14.  
  15. (set serverMode FALSE)
  16. (if     (= (expandpath (pathonly @icon)) "Soft:Public/NewEnvoy")
  17.         (
  18.             (set serverMode TRUE)
  19.             (makeassign "EnvoyInstall" "Soft:Public/NewEnvoy")
  20.         )
  21. )
  22.  
  23. (if     (= (expandpath (pathonly @icon)) "SoftPublic:NewEnvoy")
  24.         (
  25.             (set serverMode TRUE)
  26.             (makeassign "EnvoyInstall" "SoftPublic:NewEnvoy")
  27.         )
  28. )
  29.  
  30. (if
  31.     (= 0 (askbool
  32.         (prompt "IMPORTANT !!!\n\n"
  33.                         "This Installation procedure must only be used if you BOOTED FROM a copy of a V37 or higher Workbench Floppy!\n\n"
  34.                         "This Installation will delete files from the disk you have booted from to make room for Envoy.\n\n"
  35.                         "Do NOT continue if you booted from your"
  36.                         " original Workbench floppy or a harddisk.\n" 
  37.                 "Continue installation ?")
  38.         (help   "This 'Install Floppy' procedure is for installing Envoy to a copy of a Workbench floppy only,"
  39.                         " for use on floppy-boot systems.\n\n"
  40.                         "Do NOT procede with this installation if you booted from your"
  41.                         " original Workbench floppy or a harddisk.\n") 
  42.     )    )
  43. (abort ("Installation aborted by user"))
  44. )
  45.  
  46. (set sysok 0)
  47. (set wheresys (getdevice "SYS:"))
  48.  
  49. (if  (= sysok 0)
  50.     (if  (= wheresys "DF0")
  51.         (set sysok 1)
  52.     )
  53. )
  54. (if  (= sysok 0)
  55.     (if  (= wheresys "DF1")
  56.         (set sysok 1)
  57.     )
  58. )
  59. (if  (= sysok 0)
  60.     (if  (= wheresys "DF2")
  61.         (set sysok 1)
  62.     )
  63. )
  64. (if  (= sysok 0)
  65.     (if  (= wheresys "DF3")
  66.         (set sysok 1)
  67.     )
  68. )
  69.  
  70.  
  71. ;(askbool (prompt (cat "wheresys is " wheresys " sysok is " sysok))
  72. ;     (help "No help")
  73. ;)
  74.  
  75. (if (= sysok 0)
  76.     (abort ("\nSystem not booted from Workbench floppy.\nAborting Floppy Install."))
  77. )
  78.  
  79. ;(abort ("Abort for testing"))
  80.  
  81. ;
  82. ;  Figure out where to put it if installing to a hard disk.
  83. ;
  84. ;(run "setenv envoydev SYS:")
  85. ;(run "envoyinstall:guessenvoydev >env:envoydev" (safe))
  86. (set envoy_dest "SYS:Envoy")
  87.  
  88. (if (NOT (exists envoy_dest))
  89.         (makedir envoy_dest (infos))
  90. )
  91.  
  92. (if (NOT (exists "env:Envoy"))
  93.         (makedir "env:Envoy")
  94. )
  95.  
  96. (if (NOT (exists "envarc:Envoy"))
  97.         (makedir "envarc:Envoy")
  98. )
  99.  
  100. (if (NOT (exists "SYS:L"))
  101.         (makedir "SYS:L")
  102. )
  103.  
  104. (set is_update 0)
  105. ;
  106. ;
  107. ;  Now that we know where it goes and whether we are overwriting it:
  108. ;
  109. (if (NOT @pretend)
  110.         (set @default-dest envoy_dest)
  111. )
  112.  
  113. ;
  114. ; Figure out what workbench version they are using.
  115. ;
  116. (set WBVersion (/ (getversion "SYS:Libs/version.library") 65536))
  117.  
  118. ;
  119. ; V37.  We have to delete a whole bunch of stuff to make
  120. ; room for everything.
  121. ;
  122. (if     (= WBVersion 37)
  123.         (
  124.                 (delete "SYS:Libs/translator.library")
  125.                 (delete "SYS:Devs/narrator.device")
  126.                 (delete "SYS:System/DiskCopy")
  127.                 (delete "SYS:System/DiskCopy.info")
  128.                 (delete "SYS:System/Format")
  129.                 (delete "SYS:System/Format.info")
  130.                 (delete "SYS:System/NoFastMem")
  131.                 (delete "SYS:System/NoFastMem.info")
  132.                 (delete "SYS:System/FixFonts")
  133.                 (delete "SYS:System/FixFonts.info")
  134.                 (delete "SYS:Utilities/Clock")
  135.                 (delete "SYS:Utilities/Clock.info")
  136.                 (delete "SYS:Utilities/Display")
  137.                 (delete "SYS:Utilities/Display.info")
  138.                 (delete "SYS:Utilities/Say")
  139.                 (delete "SYS:Utilities/Say.info")
  140.         )
  141. )
  142.  
  143. ; V39.  We have to delete a whole bunch of stuff to make
  144. ; room for everything.
  145. ;
  146. (if     (>= WBVersion 39)
  147.         (
  148.                 (delete "SYS:System/DiskCopy")
  149.                 (delete "SYS:System/DiskCopy.info")
  150.                 (delete "SYS:System/Format")
  151.                 (delete "SYS:System/Format.info")
  152.                 (delete "SYS:System/NoFastMem")
  153.                 (delete "SYS:System/NoFastMem.info")
  154.                 (delete "SYS:System/FixFonts")
  155.                 (delete "SYS:System/FixFonts.info")
  156.                 (delete "SYS:Utilities/Clock")
  157.                 (delete "SYS:Utilities/Clock.info")
  158.                 (delete "SYS:Devs/mfm.device")
  159.                 (delete "SYS:C/Edit")
  160.                 (delete "SYS:C/MagTape")
  161.                 (delete "SYS:C/Makelink")
  162.                 (delete "SYS:C/Setfont")
  163.                 (delete "SYS:C/Sort")
  164.                 (delete "SYS:L/CrossDOSFileSystem")
  165.                 (delete "SYS:Libs/bullet.library")
  166.                 (delete "SYS:Devs/Dosdrivers/PIPE#?")
  167.         )
  168. )
  169.  
  170. ;
  171. ;
  172.  
  173. ;
  174. ;  Do the main copying.  Because pattern and all are mutually exclusive,
  175. ;  I have to copy each directory separately!!!  Copylib is used
  176. ;  for each library individually so that no smaller version is overwritten
  177. ;  by a higher version.  Last time I checked though, this feature was broken.
  178. ;
  179. (copyfiles (source "EnvoyInstall:libs")
  180.            (dest "SYS:libs")
  181.            (all)
  182. )
  183.  
  184. (if (NOT (exists (tackon envoy_dest "Configuration")))
  185.         (makedir (tackon envoy_dest "Configuration") (infos))
  186. )
  187.  
  188. (set n 0)
  189. (while  (< n 4)
  190.         (
  191.                 (copylib (prompt "Copy Envoy Configuration Editors.")
  192.                          (source (select n       "EnvoyInstall:Configuration/Filesystem Imports"
  193.                                                  "EnvoyInstall:Configuration/Network Printing"
  194.                                                  "EnvoyInstall:Configuration/Network Configuration"
  195.                                                  "EnvoyInstall:Configuration/Envoy V37 PrintStart"
  196.                                                  "EnvoyInstall:Configuration/Printer Import"
  197.                                                  "EnvoyInstall:Configuration/Users"
  198.                                                  "EnvoyInstall:Configuration/Groups"
  199.                                  )
  200.                          )
  201.                          (dest  (tackon envoy_dest "Configuration"))
  202.                          (infos)
  203.                 )
  204.                 (set n (+ n 1))
  205.         )
  206. )
  207.  
  208. ; Now comes somthing really fun. Depending on which version of the
  209. ; OS the user has, we may or may not need to update some of the commands
  210. ; in the C: directory.
  211.  
  212. (set n 0)
  213. (while  (< n 5)
  214.         (
  215.                 (copylib (prompt "Updating C: commands.")
  216.                          (source (select n       "EnvoyInstall:c/mount"
  217.                                                  "EnvoyInstall:c/protect"
  218.                                                  "EnvoyInstall:c/list"
  219.                                                  "EnvoyInstall:c/owner"
  220.                                                  "EnvoyInstall:c/group"
  221.                                  )
  222.                          )
  223.                          (dest  "SYS:C")
  224.                 )
  225.                 (set n (+ n 1))
  226.         )
  227. )
  228.  
  229. ; can't use the V40 setpatch under pre-V38 WB
  230. (set n 0)
  231. (if     (= WBVersion 37)
  232.     (set n 1)
  233. )
  234. (copylib
  235.     (source (select n
  236.                                 "EnvoyInstall:c/SetPatch"
  237.                 "EnvoyInstall:c/SetPatch.V37"
  238.         )
  239.     )
  240.     (dest   "SYS:C")
  241.     (newname "SetPatch")
  242. )
  243.  
  244.  
  245. (copylib
  246.         (prompt "Installing the Envoy Network File System.")
  247.         (source "EnvoyInstall:L/EnvoyFileSystem")
  248.         (dest "SYS:L")
  249. )
  250.  
  251. ;   Need to delete old drivers located in devs: rather than devs:Networks.
  252. ;   Need to ask which SANA-II drivers to install
  253. ;   Note that this also copies mount examples to devs:DOSDrivers
  254. ;
  255.  
  256. (if (NOT (exists "SYS:Devs/Networks"))
  257.         (makedir "SYS:Devs/Networks")
  258. )
  259.  
  260. (copylib
  261.         (source "EnvoyInstall:DEVS/envoyprint.device")
  262.         (dest "SYS:Devs/")
  263. )
  264.  
  265. (copylib
  266.         (source "EnvoyInstall:L/port-handler")
  267.         (dest "SYS:L")
  268. )
  269.  
  270. (if     (= WBVersion 37)
  271.         (
  272.             (copylib
  273.                     (source "EnvoyInstall:DEVS/printer.device")
  274.                     (dest "DEVS:")
  275.             )
  276.             (copylib (source "EnvoyInstall:Prefs/Printer")
  277.                     (dest "SYS:Prefs")
  278.                     (infos)
  279.             )
  280.             (startup "NetworkPrinting"
  281.                     (prompt "Adding an ASSIGN to your S:User-startup.")
  282.                     (command
  283.                             ("ASSIGN PRINTERS: DEVS:Printers")
  284.                     )
  285.                     (help
  286.                             "\nIn order for network printing to work on Release 2.04 systems,"
  287.                             "an assign must be made for PRINTERS:."
  288.                     )
  289.             )
  290.         )
  291. )
  292.  
  293. ;
  294. ;  Get configuration information from the user:
  295. ;
  296.  
  297. ;  Let's configure what the user will do at boot time
  298. ;
  299. (set NetworkType
  300.         (askchoice
  301.                 (prompt "Please select what type of network configuration you are using." )
  302.                 (choices "Simple Network"
  303.                          "Complex Network"
  304.                 )
  305.                 (help
  306.                         "\nSimple Network\n"
  307.                         "\n"
  308.                         "Select this option if your Amiga will not be on a network that "
  309.                         "is connected to the Internet.\n"
  310.                         "\n"
  311.                         "Complex Network\n"
  312.                         "\n"
  313.                         "Select this option if your Amiga will be "
  314.                         "on a network that contains any network routers, or is "
  315.                         "connected to the Internet."
  316.                        "See your "
  317.                         "Envoy documentation for more information on these options."
  318.                 )
  319.         )
  320. )
  321.  
  322. ;  No Internet:
  323. ;
  324. ;  Hostname
  325. ;  Address (1-254)
  326. ;  SANA-II Device  (no need to support multiple devices if not internet)
  327. ;               (don't need subnet mask)
  328.  
  329. (if (= NetworkType 0)
  330.         (
  331.                 (set HostNumber "137.239.1.")
  332.                 (set OwnerName
  333.                         (askstring
  334.                                 (prompt "Please enter the name of this Amiga's owner.")
  335.                                 (default "None")
  336.                                 (help
  337.                                         "\nEnvoy allows you to enter the name of a person "
  338.                                         "as a machine's Owner.  You may leave this set to "
  339.                                         "None if you wish."
  340.                                 )
  341.                         )
  342.                 )
  343.                 (set HostName
  344.                         (askstring
  345.                                 (prompt "Please Enter a name for your Amiga.")
  346.                                 (default "Amiga")
  347.                                 (help
  348.                                         "\nEach machine on a network must have a unique "
  349.                                         "name and number.  Machine names can have a maximum of "
  350.                                         "31 characters, and may not contain a colon (:)."
  351.                                 )
  352.                         )
  353.                 )
  354.                 (set HostNumber
  355.                         (cat    HostNumber
  356.                                 (asknumber
  357.                                         (prompt "Please enter a network address for your Amiga.")
  358.                                         (default "1")
  359.                                         (help
  360.                                                 "\nEach machine on a network must have a unique "
  361.                                                 "name and number.  Machine numbers must be in the "
  362.                                                 "range of 1 to 254."
  363.                                         )
  364.                                         (range 1 254)
  365.                                 )
  366.                         )
  367.                 )
  368.                 (set DeviceDriver
  369.                         (askchoice
  370.                                 (prompt "Please select what type of network interface hardware you will be using")
  371.                                 (choices        "Commodore Ethernet Board (A2065)"
  372.                                                 "Commodore ARCNET Board   (A2060 or A560)"
  373.                                                 "Other"
  374.                                 )
  375.                                 (default 0)
  376.                                 (help
  377.                                         "\nCommodore Ethernet Board (A2065)\n"
  378.                                         "\n"
  379.                                         "Select this option if you will be using the Commodore A2065 "
  380.                                         "Ethernet board with Envoy.  This option can also be used if you will be using the "
  381.                                         "Ameristar Ethernet board.\n"
  382.                                         "\n"
  383.                                         "Commodore ARCNET Board (A2060 or A560)\n"
  384.                                         "\n"
  385.                                         "Select this option if you will be using the Commodore A2060 "
  386.                                         "or A560 ARCNET boards with Envoy.\n"
  387.                                         "\n"
  388.                                         "Other\n"
  389.                                         "\n"
  390.                                         "Select this option if you will be using a third-party network "
  391.                                         "interface with Envoy.  Please have the documentation supplied "
  392.                                         "with your interface ready for the next few questions.\n"
  393.                                         "\n"
  394.                                 )
  395.                         )
  396.                 )
  397.                 (if (= DeviceDriver 2)
  398.                         (
  399.                                 (message
  400.                                        "\nIf you will be using a SANA-II device which has not yet been "
  401.                                        "copied to DEVS:Networks, copy it there now manually.  Come back to "
  402.                                        "the installer when you are done."
  403.                                 )
  404.                                 (set DeviceName
  405.                                         (askfile
  406.                                                 (default "DEVS:Networks")
  407.                                                 (prompt "Please select the SANA-II driver for your network interface. ")
  408.                                                 (help
  409.                                                         "\nEach network interface must have an associated software driver "
  410.                                                         "to work with Envoy.  This driver should be placed in DEVS:Networks "
  411.                                                         "along with any other SANA-II device drivers.  The documentation "
  412.                                                         "supplied with your network interface should supply you with the "
  413.                                                         "name of the device driver for your network interface. "
  414.                                                 )
  415.                                         )
  416.                                 )
  417.                                 (set IPType
  418.                                         dir a(asknumber
  419.                                                 (default 2048)
  420.                                                 (prompt "Please enter the packet type number for IP packets "
  421.                                                         "for your network interface."
  422.                                                 )
  423.                                                 (help
  424.                                                         "\nEnter the decimal number for the IP packet type used "
  425.                                                         "with your network interface.  Enter the value supplied by "
  426.                                                         "the documentaion for your network interface if the value isn't "
  427.                                                         "listed below.\n"
  428.                                                         "\n"
  429.                                                         "Ethernet Interfaces:   2048\n"
  430.                                                         "ARCNET Interfaces:      240\n"
  431.                                                 )
  432.                                         )
  433.                                 )
  434.                                 (set ARPType
  435.                                         (asknumber
  436.                                                 (default 2054)
  437.                                                 (prompt "Please enter the packet type number for ARP packets "
  438.                                                         "for your Network Interface."
  439.                                                 )
  440.                                                 (help
  441.                                                         "\nEnter the decimal number for the ARP packet type used "
  442.                                                         "with your network interface. Enter the value supplied by "
  443.                                                         "the documentation for your network interface if the value isn't "
  444.                                                         "listed below.\n"
  445.                                                         "\n"
  446.                                                         "Ethernet Interfaces:      2054\n"
  447.                                                         "ARCNET Interfaces:        241\n"
  448.                                                 )
  449.                                         )
  450.                                 )
  451.                         )
  452.                 )
  453.  
  454.                 (if (= DeviceDriver 0)
  455.                         (
  456.                                 (set DeviceName "DEVS:Networks/a2065.device")
  457.                                 (copylib
  458.                                         (source "EnvoyInstall:DEVS/Networks/a2065.device")
  459.                                         (dest   "SYS:Devs/Networks")
  460.                                 )
  461.                                 (set IPType 2048)
  462.                                 (set ARPType 2054)
  463.                         )
  464.                         (if (= DeviceDriver 1)
  465.                                 (
  466.                                         (set DeviceName "DEVS:Networks/a2060.device")
  467.                                         (copylib
  468.                                                 (source "EnvoyInstall:DEVS/Networks/a2060.device")
  469.                                                 (dest   "SYS:Devs/Networks")
  470.                                         )
  471.                                         (set IPType 240)
  472.                                         (set ARPType 241)
  473.                                 )
  474.                         )
  475.                 )
  476.                 (set HostInfo
  477.                         (cat    "HOSTINFO "
  478.                                 HostName
  479.                                 " OWNER \""
  480.                                 OwnerName
  481.                                 "\"\n"
  482.                         )
  483.                 )
  484.                 (set DevInfo
  485.                         (cat    "\nDEVINFO "
  486.                                 DeviceName
  487.                                 " "
  488.                                 HostNumber
  489.                                 " "
  490.                                 ("%ld " IPType)
  491.                                 ("%ld\n" ARPType)
  492.                         )
  493.                 )
  494.                 (textfile
  495.                         (dest   "T:nipcconfig.txt")
  496.                         (append HostInfo)
  497.                         (append DevInfo)
  498.                 )
  499.                 (run "EnvoyInstall:C/BuildNIPCPrefs t:nipcconfig.txt ENVARC:Envoy/NIPC.prefs")
  500.                 (run "EnvoyInstall:C/BuildNIPCPrefs t:nipcconfig.txt ENV:Envoy/NIPC.prefs")
  501.         )
  502.  
  503. ;  Internet:
  504. ;
  505. ;  Hostname
  506. ;  Address (full IP number)
  507. ;  SANA-II Devices (with all the fixin's)
  508. ;  Realm name
  509. ;  Realm Server
  510. ;  Realms
  511. ;  Gateway config
  512. ;
  513.         (
  514.                 (set HostNumber "137.239.1.")
  515.                 (set OwnerName
  516.                         (askstring
  517.                                 (prompt "Please enter the name of this Amiga's Owner.")
  518.                                 (default "None")
  519.                                 (help
  520.                                         "\nEnvoy allows you to enter the name of a person "
  521.                                         "as the machine's Owner. You may leave this set to "
  522.                                         "None if you wish."
  523.                                 )
  524.                         )
  525.                 )
  526.                 (set HostName
  527.                         (askstring
  528.                                 (prompt "Please enter a name for your Amiga.")
  529.                                 (default "Amiga")
  530.                                 (help
  531.                                         "\nEach machine on a network must have a unique "
  532.                                         "name and number. Machine names can have a maximum of "
  533.                                         "31 characters, and may not contain a colon (:). "
  534.                                 )
  535.                         )
  536.                 )
  537.                 (set HostIP
  538.                         (askstring
  539.                                 (prompt "Please enter a network address for your Amiga.")
  540.                                 (default "137.239.1.1")
  541.                                 (help
  542.                                         "\nEach machine on a network must have a unique "
  543.                                         "network address. \n\nSee your "
  544.                                         "Envoy documentation for more information, or contact "
  545.                                         "your Network Administrator."
  546.                                 )
  547.                         )
  548.                 )
  549.                 (if     (askbool
  550.                                 (prompt "Is your network using a default subnet mask?")
  551.                                 (default 0)
  552.                                 (help
  553.                                         "\nSubnet masks are used to break a large network into smaller "
  554.                                         "subnetworks. \n\nIf you are unsure whether subnet masks "
  555.                                         "are in use, contact your Network Administrator, or see "
  556.                                         "your Envoy documentation."
  557. ;**This help message needs to tell the user something about the consequences of this choice.
  558. ; Will our docs really be able to help them with this particular question?**
  559.                                 )
  560.                         )
  561.                         (set SubnetMask "none")
  562.                         (set SubnetMask
  563.                                 (askstring
  564.                                         (prompt "Please enter the subnet mask being used on your network.")
  565. ; ** If only one per network is possible, should be "...whether a subnet mask
  566. ; is in use..." in the preceding Help.  If more than one is possible, then
  567. ; this prompt needs further qualification. **
  568.                                         (default "255.255.255.0")
  569.                                         (help
  570.                                                 "\nThe subnet mask determines what portion of a network "
  571.                                                 "address is used to specify the network, and what portion "
  572.                                                 "is used to specify a host. \n\nFor more information, see "
  573.                                                 "your Envoy documentation, or contact "
  574.                                                 "your Network Administrator."
  575.  
  576.                                         )
  577.                                 )
  578.                         )
  579.                 )
  580.                 (if     (askbool
  581.                                 (prompt "Do you want to select the network address for a "
  582.                                         "default router?"
  583.                                 )
  584.                                 (default 1)
  585.                                 (help
  586.                                         "\nRouters are machines that direct network traffic from one network "
  587.                                         "to another. Usually each physical network has one router that "
  588.                                         "is designated as the 'default' router. \n\nIf you are not sure "
  589.                                         "whether you have a default router, contact your Network "
  590.                                         "Administrator."
  591.                                 )
  592.                         )
  593.                         (set DefaultRouter
  594.                                 (askstring
  595.                                         (prompt "Please enter the network address of the default router.")
  596.                                         (help
  597.                                                 "\nAs with other hosts on a network, routers must also have "
  598.                                                 "a network address, usually one for each network to which they "
  599.                                                 "are connected. \n\nFor more information, see "
  600.                                                 "your Envoy documentation, or contact your Network Administrator."
  601. ; **The second part of the first sentence is confusing.  Is there one default
  602. ; router address, or several? **
  603.                                         )
  604.                                 )
  605.                         )
  606.                         (set DefaultRouter "none")
  607.  
  608.                 )
  609.                 (set RealmName
  610.                         (askstring
  611.                                 (prompt "Please enter the name of your Amiga's Realm.")
  612.                                 (default "Realm1")
  613.                                 (help
  614.                                         "\nAn Envoy Realm is a logical grouping of physical networks. "
  615.                                         "Realms are typically used to organize large numbers of "
  616.                                         "machines into manageable groups."
  617. ; ** This needs a little more: how about max. characters, other restrictions/suggestions, whether the
  618. ; realm must already exist, etc.  Also, Is it a grouping of networks, or of hosts?  What's the difference
  619. ; between a Realm and a subnet defined by a subnet mask?**
  620.                                 )
  621.                         )
  622.                 )
  623.                 (set RealmIP
  624.                         (askstring
  625.                                 (prompt "Please enter the network address of your Realm Server.")
  626.                                 (default "137.239.1.254")
  627.                                 (help
  628.                                         "\nA Realm Server is a machine that knows about all of the Realms "
  629.                                         "that exist on your network. Enter the network address of "
  630.                                         "that machine. \n\nFor more information, see "
  631.                                         "your Envoy documentation, or contact your Network Administrator."
  632.                                 )
  633.                         )
  634.                 )
  635.                 (set DeviceDriver
  636.                         (askchoice
  637.                                 (prompt "Please select what type of network interface you will be using.")
  638.                                 (choices        "Commodore Ethernet Board (A2065)"
  639.                                                 "Commodore ARCNET Board   (A2060)"
  640.                                                 "Other"
  641.                                 )
  642.                                 (default 0)
  643.                                 (help
  644.                                         "\nCommodore Ethernet Board (A2065)\n"
  645.                                         "\n"
  646.                                         "Select this option if you will be using the Commodore A2065 "
  647.                                         "Ethernet board with Envoy. This option can also be used if you will be using the "
  648.                                         "Ameristar Ethernet board.\n"
  649.                                         "\n"
  650.                                         "Commodore ARCNET Board (A2060 or A560)\n"
  651.                                         "\n"
  652.                                         "Select this option if you will be using the Commodore A2060 "
  653.                                         "or A560 ARCNET boards with Envoy.\n"
  654.                                         "\n\n"
  655.                                         "Other\n"
  656.                                         "\n"
  657.                                         "Select this option if you will be using a third-party network "
  658.                                         "interface with Envoy. Please have the documentation supplied "
  659.                                         "with your interface ready for the next few questions.\n"
  660.                                         "\n"
  661.                                 )
  662.                         )
  663.                 )
  664.                 (if (= DeviceDriver 2)
  665.                         (
  666.                                 (set DeviceName
  667.                                         (askfile
  668.                                                 (default "DEVS:Networks")
  669.                                                 (prompt "Please select the SANA-II driver for your network interface.")
  670.                                                 (help
  671.                                                         "\nEach network interface must have an associated software driver "
  672.                                                         "to work with Envoy. This driver should be placed in DEVS:Networks "
  673.                                                         "along with any other SANA-II device drivers. \n\nThe documentation "
  674.                                                         "supplied with your network interface should provide the "
  675.                                                         "name of the device driver for the interface. "
  676.                                                 )
  677.                                         )
  678.                                 )
  679.                                 (set IPType
  680.                                         (asknumber
  681.                                                 (default 2048)
  682.                                                 (prompt "Please enter the packet type number for IP packets "
  683.                                                         "for your network interface."
  684.                                                 )
  685.                                                 (help
  686.                                                         "\nEnter the decimal number for the IP packet type used "
  687.                                                         "with your network interface. Enter the value supplied by "
  688.                                                         "the documentation for your network interface if the value isn't "
  689.                                                         "listed below.\n"
  690.                                                         "\n"
  691.                                                         "Ethernet Interfaces:      2048\n"
  692.                                                         "ARCNET Interfaces:        240\n"
  693.                                                 )
  694.                                         )
  695.                                 )
  696.                                 (set ARPType
  697.                                         (asknumber
  698.                                                 (default 2054)
  699.                                                 (prompt "Please enter the packet type number for ARP packets "
  700.                                                         "for your network interface."
  701.                                                 )
  702.                                                 (help
  703.                                                         "\nEnter the decimal number for the ARP packet type used "
  704.                                                         "with your network interface. Enter the value supplied by "
  705.                                                         "the documentation for your network interface if the value isn't "
  706.                                                         "listed below.\n"
  707.                                                         "\n"
  708.                                                         "Ethernet Interfaces:      2054\n"
  709.                                                         "ARCNET Interfaces:        241\n"
  710.                                                 )
  711.                                         )
  712.                                 )
  713.                         )
  714.                 )
  715.                 (if (= DeviceDriver 0)
  716.                         (
  717.                                 (set DeviceName "DEVS:Networks/a2065.device")
  718.                                 (copylib
  719.                                         (source "EnvoyInstall:DEVS/Networks/a2065.device")
  720.                                         (dest   "DEVS:Networks")
  721.                                 )
  722.                                 (set IPType 2048)
  723.                                 (set ARPType 2054)
  724.                         )
  725.                         (if (= DeviceDriver 1)
  726.                                 (
  727.                                         (set DeviceName "DEVS:Networks/a2060.device")
  728.                                         (copylib
  729.                                                 (source "EnvoyInstall:DEVS/Networks/a2060.device")
  730.                                                 (dest   "DEVS:Networks")
  731.                                         )
  732.                                         (set IPType 240)
  733.                                         (set ARPType 241)
  734.                                 )
  735.                         )
  736.                 )
  737.                 (set HostInfo
  738.                         (cat    "HOSTINFO "
  739.                                 HostName
  740.                                 " REALMNAME "
  741.                                 RealmName
  742.                                 " REALMIP "
  743.                                 RealmIP
  744.                                 " OWNER \""
  745.                                 OwnerName
  746.                                 "\"\n"
  747.                         )
  748.                 )
  749.                 (set DevInfo
  750.                         (cat    "DEVINFO "
  751.                                 DeviceName
  752.                                 " "
  753.                                 HostIP
  754.                                 " "
  755.                                 ("%ld " IPType)
  756.                                 ("%ld " ARPType)
  757.  
  758.                         )
  759.                 )
  760.                 (if (<> "none" SubnetMask)
  761.                         (set DevInfo
  762.                                 (cat    DevInfo
  763.                                         " SUBMASK "
  764.                                         SubnetMask
  765.                                 )
  766.                         )
  767.                 )
  768.                 (set DevInfo
  769.                         (cat    Devinfo
  770.                                 "\n"
  771.                         )
  772.                 )
  773.                 (textfile
  774.                         (dest   "T:nipcconfig.txt")
  775.                         (append HostInfo)
  776.                         (append DevInfo)
  777.                         (if (<> "none" DefaultRouter)
  778.                                 (append
  779.                                         (cat    "ROUTEINFO "
  780.                                                 "0.0.0.0 "
  781.                                                 DefaultRouter
  782.                                                 " 1\n"
  783.                                         )
  784.                                 )
  785.                         )
  786.                 )
  787.                 (run "EnvoyInstall:C/BuildNIPCPrefs t:nipcconfig.txt ENVARC:Envoy/NIPC.prefs")
  788.                 (run "EnvoyInstall:C/BuildNIPCPrefs t:nipcconfig.txt ENV:Envoy/NIPC.prefs")
  789.         )
  790. )
  791.  
  792.  
  793. (copyfiles
  794.         (source "EnvoyInstall:C/Reboot")
  795.         (dest   "ram:")
  796.  
  797. )
  798.  
  799. (message "\nThe installation of Envoy is now complete.\n\n"
  800.          "To enable Envoy, you must reboot your Amiga.\n\n"
  801.          "Remove the \"Envoy Install\" disk from the floppy drive "
  802.          "and select the \"Proceed\" gadget to reboot your Amiga."
  803. )
  804. (run "ram:Reboot")
  805.  
  806.